import request from "@/utils/request";
// 阿米巴预算 服务

// 阿米巴预算获取价格 /tool/budgetService/getPrice
export const getBudgetServicePriceApi = params => {
  return request({
    url: `/tool/budgetService/getPrice`,
    method: "GET",
    params
  });
};

// 获取问圈列表 /service/circle/selectCircleAmount
export const selectCircleAmountApi = params => {
  return request({
    url: `/service/circle/selectCircleAmount`,
    method: "GET",
    params
  });
};

// 获取所有问圈成员 /service/circle/selectUserByCircle
export const getSelectUserByCircleApi = params => {
  return request({
    url: `/service/circle/selectUserByCircle`,
    method: "GET",
    params
  });
};

// 获取增加了排序的消费订单
export const getOrderUserOrderByTypeApi = params => {
  return request({
    url: `/financial/order/userOrderByType`,
    method: "GET",
    params
  });
};

//获取项目的订单详情 /financial/order/getInfo
export const getProjectOrderGetInfoApi = params => {
  return request({
    url: `/financial/order/getInfo`,
    method: "GET",
    params
  });
};

//查询试用套餐 /financial/toolPrice/list
export const getToolPriceListApi = params => {
  return request({
    url: `/financial/toolPrice/list`,
    method: "GET",
    params
  });
};

// 阿米巴预算下单 /tool/budgetService/addOrder
export const addOrderBudgetServiceApi = data => {
  return request({
    url: `/tool/budgetService/addOrder`,
    method: "post",
    data
  });
};

// 阿米巴预算下单（添加） /tool/budgetService/addUnitOrder
export const addUnitOrderBudgetServiceApi = data => {
  return request({
    url: `/tool/budgetService/addUnitOrder`,
    method: "post",
    data
  });
};

// 阿米巴预算试用，下0元订单 /tool/budgetService/addTryOrder
export const addTryOrderBudgetServiceApi = data => {
  return request({
    url: `/tool/budgetService/addTryOrder`,
    method: "post",
    data
  });
};

// 获取问圈服务列表 /tool/budgetService/list
export const getBudgetServiceListApi = params => {
  return request({
    url: `/tool/budgetService/list`,
    method: "get",
    params
  });
};

// 其他设置查询接口 /tool/budgetService/getInfo
export const getBudgetServiceInfoApi = params => {
  return request({
    url: `/tool/budgetService/getInfo`,
    method: "get",
    params
  });
};

// 其他设置的修改接口 /tool/budgetService/edit
export const editBudgetServiceApi = data => {
  return request({
    url: `/tool/budgetService/edit`,
    method: "put",
    data
  });
};

// 清除一段时间内的报销数据 /tool/budgetService/delDataByTime
export const delDataByTimeBudgetApi = data => {
  return request({
    url: `/tool/budgetService/delDataByTime`,
    method: "post",
    data
  });
};

// 获取当前预算周期 /tool/budgetService/getPeriod
export const getPeriodBudgetServiceApi = params => {
  return request({
    url: `/tool/budgetService/getPeriod`,
    method: "get",
    params
  });
};

// 获取未绑卡列表 /tool/budgetService/listNoCardCircleStaff
export const getListNoCardCircleStaffApi = params => {
  return request({
    url: `/tool/budgetService/listNoCardCircleStaff`,
    method: "get",
    params
  });
};

// 提醒未绑卡 /tool/budgetService/remindBindCard
export const remindBindCardServiceApi = data => {
  return request({
    url: `/tool/budgetService/remindBindCard`,
    method: "post",
    data
  });
};

// 获取当前问圈的余额 /tool/budgetService/getBalance
export const getDepositCircleBalanceApi = params => {
  return request({
    url: `/tool/budgetService/getBalance`,
    method: "get",
    params
  });
};
// 阿米巴预算获取价格 /tool/budgetService/getPrice
export const getBudgetServiceLogApi = params => {
  return request({
    url: `/tool/operLog/list`,
    method: "GET",
    params
  });
};
//获取预算单元使用情况/tool/budgetRole/getUsedAndTotal
export const getUsedAndTotalApi = params => {
  return request({
    url: "/tool/budgetRole/getUsedAndTotal",
    method: "GET",
    params
  });
};
